//
//  MovieCollectionViewCell.swift
//  SwiftTest
//
//  Created by 齐凯 on 2020/6/19.
//  Copyright © 2020 QiKai. All rights reserved.
//

import UIKit

class MovieCollectionViewCell: UICollectionViewCell {
 
    var lab:UILabel!
    var data = 0{
        didSet{
           lab.text = String(data)
        }
        
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.contentView.backgroundColor = UIColor.white;
          lab = UILabel.init()
          self.contentView.addSubview(lab)
          lab.snp.makeConstraints { (make) in
              make.center.equalToSuperview()
              make.height.equalTo(20)
          }
    }
    
    
}
